package com.demo2do.fms.entity.supplier.ware;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("warePlatform")
public enum WarePlatform {
    
    A("01", "上海安亭站"),
    
    B("02", "上海闵行站"),
    
    C("03", "上海封浜站"),
    
    D("04", "昆明王家营西站"),
    
    E("05", "四川城厢站"),
    
    F("06", "天津新港站"),
    
    G("07", "南京紫金山站"),
    
    H("08", "沈阳东站"),
    
    I("09", "烟台站"),
    
    J("10", "乌鲁木齐北站"),
    
    K("11", "德阳站"),
    
    L("12", "咸阳西站"),
    
    M("13", "西安新筑站"),
    
    N("14", "柳州机保站"),
    
    O("15", "北京星火站"),
    
    P("16", "山西鸣李站"),
    
    Q("17", "武汉汉阳站");
    
    /**
     * 
     * @param code
     * @param description
     */
    WarePlatform(String code, String description) {
        this.code = code;
        this.description = description;
    }
    
    public static WarePlatform codeOf(String code){
        
        for(WarePlatform warePlatform : WarePlatform.values()){
            if(warePlatform.getCode().equals(code)){
                
                return warePlatform;
            }
        }
        return null;
    }
    
    private String code;
    
    private String description;
    
    public String getCode() {
        return code;
    }
    
    public String getDescription() {
        return description;
    }
}
